# Copyright (c) 2008, Eamonn Faherty
# This is licensed under the MIT licence.

import sys
import asBuilder
    
def runTest(sourceCode):
    """runs a check and returns the score from the checks"""
    score = 0
    builder = asBuilder.Builder()
    builder.addSource(sourceCode)
    return builder.score
    
score = runTest(sys.argv[1])
print "SCORE :", score

#example usage
#score = runTest("C:/src/checkstyleas3/tests/resources/")